package com.superarai.portal.service;

import java.sql.Timestamp;

import com.superarai.portal.entity.AbstractEntity;
import com.superarai.portal.util.DateUtil;

public class AbstractSAService<ENTITY extends AbstractEntity> extends AbstractService<ENTITY>{
	@Override
	public int insert(ENTITY entity) {
		Timestamp currentTime = DateUtil.getCurrentTime(); 
		entity.createDate = currentTime;
		entity.updateDate = currentTime;
		return super.insert(entity);
	}
}
